using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetVUserInfoResponse : GeneratedMessageLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetVUserInfoResponse result;
			protected override GetVUserInfoResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetVUserInfoResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetVUserInfoResponse DefaultInstanceForType
			{
				get
				{
					return GetVUserInfoResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint Version
			{
				get
				{
					return this.result.Version;
				}
				set
				{
					this.SetVersion(value);
				}
			}
			public uint VUserCount
			{
				get
				{
					return this.result.VUserCount;
				}
				set
				{
					this.SetVUserCount(value);
				}
			}
			public IPopsicleList<VUserResponseItem> VUserListList
			{
				get
				{
					return this.PrepareBuilder().vUserList_;
				}
			}
			public int VUserListCount
			{
				get
				{
					return this.result.VUserListCount;
				}
			}
			public Builder()
			{
				this.result = GetVUserInfoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetVUserInfoResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetVUserInfoResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetVUserInfoResponse other = this.result;
					this.result = new GetVUserInfoResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetVUserInfoResponse.Builder Clear()
			{
				this.result = GetVUserInfoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetVUserInfoResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetVUserInfoResponse.Builder(this.result);
				}
				return new GetVUserInfoResponse.Builder().MergeFrom(this.result);
			}
			public override GetVUserInfoResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetVUserInfoResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetVUserInfoResponse)
				{
					return this.MergeFrom((GetVUserInfoResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetVUserInfoResponse.Builder MergeFrom(GetVUserInfoResponse other)
			{
				return this;
			}
			public override GetVUserInfoResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetVUserInfoResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetVUserInfoResponse._getVUserInfoResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetVUserInfoResponse._getVUserInfoResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasVersion = input.ReadUInt32(ref this.result.version_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasVUserCount = input.ReadUInt32(ref this.result.vUserCount_);
							continue;
						}
						if (num3 == 34u)
						{
							input.ReadMessageArray<VUserResponseItem>(num, text, this.result.vUserList_, VUserResponseItem.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetVUserInfoResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetVUserInfoResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetVUserInfoResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetVUserInfoResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetVUserInfoResponse.Builder SetVersion(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVersion = true;
				this.result.version_ = value;
				return this;
			}
			public GetVUserInfoResponse.Builder ClearVersion()
			{
				this.PrepareBuilder();
				this.result.hasVersion = false;
				this.result.version_ = 0u;
				return this;
			}
			public GetVUserInfoResponse.Builder SetVUserCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVUserCount = true;
				this.result.vUserCount_ = value;
				return this;
			}
			public GetVUserInfoResponse.Builder ClearVUserCount()
			{
				this.PrepareBuilder();
				this.result.hasVUserCount = false;
				this.result.vUserCount_ = 0u;
				return this;
			}
			public VUserResponseItem GetVUserList(int index)
			{
				return this.result.GetVUserList(index);
			}
			public GetVUserInfoResponse.Builder SetVUserList(int index, VUserResponseItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.vUserList_[index] = value;
				return this;
			}
			public GetVUserInfoResponse.Builder SetVUserList(int index, VUserResponseItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.vUserList_[index] = builderForValue.Build();
				return this;
			}
			public GetVUserInfoResponse.Builder AddVUserList(VUserResponseItem value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.vUserList_.Add(value);
				return this;
			}
			public GetVUserInfoResponse.Builder AddVUserList(VUserResponseItem.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.vUserList_.Add(builderForValue.Build());
				return this;
			}
			public GetVUserInfoResponse.Builder AddRangeVUserList(IEnumerable<VUserResponseItem> values)
			{
				this.PrepareBuilder();
				this.result.vUserList_.Add(values);
				return this;
			}
			public GetVUserInfoResponse.Builder ClearVUserList()
			{
				this.PrepareBuilder();
				this.result.vUserList_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int VersionFieldNumber = 2;
		public const int VUserCountFieldNumber = 3;
		public const int VUserListFieldNumber = 4;
		private static readonly GetVUserInfoResponse defaultInstance;
		private static readonly string[] _getVUserInfoResponseFieldNames;
		private static readonly uint[] _getVUserInfoResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasVersion;
		private uint version_;
		private bool hasVUserCount;
		private uint vUserCount_;
		private PopsicleList<VUserResponseItem> vUserList_ = new PopsicleList<VUserResponseItem>();
		private int memoizedSerializedSize = -1;
		public static GetVUserInfoResponse DefaultInstance
		{
			get
			{
				return GetVUserInfoResponse.defaultInstance;
			}
		}
		public override GetVUserInfoResponse DefaultInstanceForType
		{
			get
			{
				return GetVUserInfoResponse.DefaultInstance;
			}
		}
		protected override GetVUserInfoResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint Version
		{
			get
			{
				return this.version_;
			}
		}
		public uint VUserCount
		{
			get
			{
				return this.vUserCount_;
			}
		}
		public IList<VUserResponseItem> VUserListList
		{
			get
			{
				return this.vUserList_;
			}
		}
		public int VUserListCount
		{
			get
			{
				return this.vUserList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasVersion)
				{
					return false;
				}
				if (!this.hasVUserCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				using (IEnumerator<VUserResponseItem> enumerator = this.VUserListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						VUserResponseItem current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							return false;
						}
					}
				}
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasVersion)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Version);
				}
				if (this.hasVUserCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.VUserCount);
				}
				using (IEnumerator<VUserResponseItem> enumerator = this.VUserListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						VUserResponseItem current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetVUserInfoResponse()
		{
		}
		public VUserResponseItem GetVUserList(int index)
		{
			return this.vUserList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getVUserInfoResponseFieldNames = GetVUserInfoResponse._getVUserInfoResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getVUserInfoResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasVersion)
			{
				output.WriteUInt32(2, getVUserInfoResponseFieldNames[3], this.Version);
			}
			if (this.hasVUserCount)
			{
				output.WriteUInt32(3, getVUserInfoResponseFieldNames[1], this.VUserCount);
			}
			if (this.vUserList_.Count > 0)
			{
				output.WriteMessageArray<VUserResponseItem>(4, getVUserInfoResponseFieldNames[2], this.vUserList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasVersion)
			{
				num ^= this.version_.GetHashCode();
			}
			if (this.hasVUserCount)
			{
				num ^= this.vUserCount_.GetHashCode();
			}
			using (IEnumerator<VUserResponseItem> enumerator = this.vUserList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					VUserResponseItem current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetVUserInfoResponse getVUserInfoResponse = value as GetVUserInfoResponse;
			if (getVUserInfoResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != getVUserInfoResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(getVUserInfoResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasVersion != getVUserInfoResponse.hasVersion || (this.hasVersion && !this.version_.Equals(getVUserInfoResponse.version_)))
			{
				return false;
			}
			if (this.hasVUserCount != getVUserInfoResponse.hasVUserCount || (this.hasVUserCount && !this.vUserCount_.Equals(getVUserInfoResponse.vUserCount_)))
			{
				return false;
			}
			if (this.vUserList_.Count != getVUserInfoResponse.vUserList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.vUserList_.Count; i++)
			{
				if (!this.vUserList_[i].Equals(getVUserInfoResponse.vUserList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>.PrintField("Version", this.hasVersion, this.version_, writer);
			GeneratedMessageLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>.PrintField("VUserCount", this.hasVUserCount, this.vUserCount_, writer);
			GeneratedMessageLite<GetVUserInfoResponse, GetVUserInfoResponse.Builder>.PrintField<VUserResponseItem>("VUserList", this.vUserList_, writer);
		}
		public static GetVUserInfoResponse ParseFrom(byte[] data)
		{
			return GetVUserInfoResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetVUserInfoResponse MakeReadOnly()
		{
			this.vUserList_.MakeReadOnly();
			return this;
		}
		public static GetVUserInfoResponse.Builder CreateBuilder()
		{
			return new GetVUserInfoResponse.Builder();
		}
		public override GetVUserInfoResponse.Builder ToBuilder()
		{
			return GetVUserInfoResponse.CreateBuilder(this);
		}
		public override GetVUserInfoResponse.Builder CreateBuilderForType()
		{
			return new GetVUserInfoResponse.Builder();
		}
		public static GetVUserInfoResponse.Builder CreateBuilder(GetVUserInfoResponse prototype)
		{
			return new GetVUserInfoResponse.Builder(prototype);
		}
		static GetVUserInfoResponse()
		{
			GetVUserInfoResponse.defaultInstance = new GetVUserInfoResponse().MakeReadOnly();
			GetVUserInfoResponse._getVUserInfoResponseFieldNames = new string[]
			{
				"BaseResponse",
				"VUserCount",
				"VUserList",
				"Version"
			};
			GetVUserInfoResponse._getVUserInfoResponseFieldTags = new uint[]
			{
				10u,
				24u,
				34u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.GetVUserInfoResponse.Descriptor, null);
		}
	}
}
